package com.accp.biz.impl;

import com.accp.biz.ExceptionOrderBiz;
import com.accp.dao.ExceptionOrderDao;
import com.accp.pojo.ExceptionOrder;
import com.accp.pojo.ExceptionOrder;

import java.util.List;

public class ExceptionOrderBizImpl implements ExceptionOrderBiz {
	
	private ExceptionOrderDao ExceptionOrderDao;
	
	public void setExceptionOrderDao(ExceptionOrderDao ExceptionOrderDao) {
		this.ExceptionOrderDao = ExceptionOrderDao;
	}

	/**
	 * 增加订单
	 */
	@Override
	public boolean add(ExceptionOrder ExceptionOrder) {
		return ExceptionOrderDao.add(ExceptionOrder);
	}

	@Override
	public List<ExceptionOrder> findByManage(String checker, String name) {
		return null;
	}

	/**
	 * 通过ID查看
	 */
	@Override
	public ExceptionOrder findById(Integer id) {
		return ExceptionOrderDao.findById(id);
	}
	
	/**
	 * 删除
	 */
	@Override
	public boolean delete(ExceptionOrder ExceptionOrder) {
		return ExceptionOrderDao.delete(ExceptionOrder);
	}

	
	/**
	 * 查询订单
	 */
	@SuppressWarnings("rawtypes")
	@Override
	public List selectByName( String className, String patientName) {
		return ExceptionOrderDao.selectByName(className, patientName);
	}

}
